package Demo1;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 32585
 * Date: 2024-10-06
 * Time: 111
 */

abstract class A{
    int a;
    int b;

    public A(int b, int a) {
        this.b = b;
        this.a = a;
    }

    void func(){
        System.out.println("void func()");
    }

    public abstract void test01();
}
abstract class B extends A{
    public B(int a, int b) {
        super(a,b);
    }
    public abstract void test02();
}

class C extends B{
    public C(int a, int b) {
        super(a,b);
    }

    @Override
    public void test01() {
        System.out.println("public void test01() {");
    }

    @Override
    public void test02() {
        System.out.println("public void test02() {");
    }


}
public class Test {

    public static void main(String[] args) {
        A a=new C(1,2);
        a.func();
        System.out.println("进行以乐意常识性丢该");
    }
    public static void drawMap(Shape shape){
        shape.draw();
    }
    public static void main1(String[] args) {
        Shape shape1=new Rect();
        Shape shape2=new Cycle();
        drawMap(shape1);
        drawMap(shape2);
    }



}
